package model;

public enum File
{
    A,
    B,
    C,
    D,
    E,
    F,
    G,
    H;
    
    public File next()
    {
        return File.values()[ordinal() + 1];
    }
    
    public File previous()
    {
        return File.values()[ordinal() - 1];
    }
    
    public boolean hasPrevious()
    {
        return ordinal() > 0;
    }
    
    public boolean hasNext()
    {
        return ordinal() < File.values().length;
    }
}
